<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 200px;
        height: 200px;
        background-color: blueviolet;
        background-image: url(D:/html/vscode/image/哔哩哔哩.png);
        background-repeat: no-repeat;
        background-position: 20px 50px;
        /* background-attachment属性设置背景图像是否固定或者随着页面的其余部分滚动。  fixed固定 scroll滚动*/
        background-attachment: scroll;
      }
    </style>
  </head>
  <body>
    <div></div>
  </body>
</html>
